package com.tiger.common.core.domain.entity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tiger.common.annotation.Excel;
import com.tiger.common.annotation.Excel.ColumnType;
import com.tiger.common.core.domain.BaseEntity;

/**
 * 岗位表 sys_post
 *
 * @author tiger
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "sys_post对象", description = "岗位内容")
public class SysPost extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 岗位序号 */
    @Excel(name = "岗位序号", cellType = ColumnType.NUMERIC)
    @ApiModelProperty(value = "id")
    private Long postId;

    /** 岗位编码 */
    @Excel(name = "岗位编码")
    @ApiModelProperty(value = "岗位编码")
    private String postCode;

    /** 岗位名称 */
    @Excel(name = "岗位名称")
    @ApiModelProperty(value = "岗位名称")
    private String postName;

    /** 岗位描述 */
    @ApiModelProperty(value = "岗位描述")
    private String postDescription;

    /** 岗位类型 */
    @ApiModelProperty(value = "岗位类型")
    private String postType;

    /** 租户id(0--平台 非0--正常租户) */
    private Long tenantId;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "部门id")
    private Long departmentId;

    /** 岗位排序 */
    @Excel(name = "岗位排序")
    private String postSort;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 用户是否存在此岗位标识 默认不存在 */
    private boolean flag = false;

    private String type = "1";

}
